import request from '@/utils/request'

// 查询答题日志列表
export function listAnswerLog(query) {
    return request({
        url: '/answerSheet/answerLog/list',
        method: 'get',
        params: query
    })
}

// 查询答题日志所有列表
export function listAllAnswerLog(query) {
    return request({
        url: '/answerSheet/answerLog/listAll',
        method: 'get',
        params: query
    })
}

// 查询答题日志详细
export function getAnswerLog(id) {
    return request({
        url: '/answerSheet/answerLog/' + id,
        method: 'get'
    })
}

// 新增答题日志
export function addAnswerLog(data) {
    return request({
        url: '/answerSheet/answerLog',
        method: 'post',
        data: data
    })
}

// 修改答题日志
export function updateAnswerLog(data) {
    return request({
        url: '/answerSheet/answerLog',
        method: 'put',
        data: data
    })
}

// 删除答题日志
export function delAnswerLog(id) {
    return request({
        url: '/answerSheet/answerLog/' + id,
        method: 'delete'
    })
}
